<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    localStorage.setItem("abc","哈哈哈")
    localStorage.setItem("abc","哈哈哈123")
    localStorage.setItem("a","10")
    localStorage.setItem("b","20")
    localStorage.setItem("c","30")

    console.log(localStorage.getItem("a"))
    console.log(localStorage.getItem("b"))
    console.log(localStorage.getItem("abc"))

    localStorage.removeItem("a")
    localStorage.removeItem("b")

    localStorage.clear()

    console.log(localStorage)
    console.log(window.localStorage)
    console.log(window.localStorage === localStorage)
</script>
</html>